package com.videoanswer.van.persistence.dao.common.impl;

import com.videoanswer.van.common.dao.hibernate.HibernateDao;
import com.videoanswer.van.persistence.dao.common.ProvinceDaoService;
import com.videoanswer.van.persistence.domain.common.Province;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * User: Frank Liu
 * Date: 12/13/12
 * Time: 2:30 PM
 */
@Repository
public class ProvinceDaoServiceImpl extends HibernateDao<Province> implements ProvinceDaoService {

    public ProvinceDaoServiceImpl() {
		super(Province.class);
	}

    public List<Province> list() {
        return getHibernateTemplate().loadAll(Province.class);
    }
}
